package com.shiwu.client.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.Map;

/**
 * 作者：LCG
 * 创建时间：2019/4/2 10:05
 * 描述：
 */
@RestController
public class TestClientController {
    @Autowired
    private ClientService clientService;

    @RequestMapping("/chuliyewu")
    public int chuLiYewu(HttpServletRequest request){


        Map<String,Object> order=new HashMap<String,Object>();
        order.put ( "id",UID.getUUIDOrder () );
        order.put ( "orderId",order.get ( "id" ));
        order.put ( "kucun",1);
        order.put ( "goodsId",100 );

        order.put ( "out",request.getParameter ( "out" ) );
        order.put ( "error",request.getParameter ( "error" ) );

        int i = clientService.updateKucun ( order );

        return i;
    }


}
